$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_wxysjkxmb_m")
    const dgrid1 = $NG.getCmpApi("p_form_wxysjkxmb_d1")
    const getHeadValue = (str)=>mstform.getItem(str).getValue()
    useUpdateRows(()=>{
        const rows = dgrid1.getRows()
        rows.forEach(item=>{
            item.u_zfz = (Number(item.u_l) || 0) + (Number(item.u_e) || 0) + (Number(item.u_c) || 0)
            let lock = false
            if(item.u_zjpdtj){
                lock = true
            }
            item.u_sfwzywxy = lock?'01':'02'
        })
    })
})